import Success from '@business/loginsucc.vue';
import Signin from '@business/signin.vue';
import FetchInfo from '@business/fetchinfo.vue';
export const PublicRoutes: Array<RouteRecordRaw> = [
    {
        path: '/',
        name: 'signin',
        components: {
            default: () => Promise.resolve(Signin)
        }
    },
    {
        path: '/quit',
        name: 'quit',
        components: {
            default: () => Promise.resolve(Signin)
        }
    },
    {
        path: '/success',
        name: 'success',
        components: {
            default: () => Promise.resolve(Success)
        },
        meta: {
            title: '登录成功页',
            requiresAuth: false
        }
    },
    {
        path: '/userinfo',
        name: 'userinfo',
        components: {
            default: () => Promise.resolve(FetchInfo)
        },
        meta: {
            title: '登录成功页',
            requiresAuth: false
        }
    },
    {
        path: '/chief',
        name: 'chief_index',
        redirect: {name: 'success'}
    },
];
